import allure
import pytest

from utils.configurator import config

@pytest.fixture(name="login", scope="session", autouse=True)
def login(app):
    with allure.step("Login"):
        login_page = app.goto_login_page()
        # yield login_page(config["account"]["username"], config["account"]["password"])